<?php
/**
 * Custom bootstraping that do not need to be placed in resources
 */
class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
{
    /**
     * Initialize Zend_Loader_Autoloader
     * @return Zend_Loader_Autoloader
     */
    protected function _initAutoload()
    {
        require_once "Zend/Loader/Autoloader.php";
        $autoloader = Zend_Loader_Autoloader::getInstance();
        $autoloader->setFallbackAutoloader(true);

        return $autoloader;
    }

    /**
     * Store options from application.ini in the Zend Registry using options key
     * @return void
     */
    protected function _initOptions()
    {
        Zend_Registry::set('Zend_Application_Options', $this->getOptions());
    }
}
